package com.yunhe.Service.impl;

import com.yunhe.Service.UserService;
import com.yunhe.dao.UserDao;
import com.yunhe.dao.impl.UserDaoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    @Qualifier("userDao")
    private UserDao userDao;
//    UserDao userDao=new UserDaoImpl();
    @Override
    public void selectAll() {
        System.out.println("userService执行");
        userDao.All();
    }
}
